package com.cn.goodsadmin.service;

import com.cn.goodsadmin.po.Attachgoods;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("AttachGoodsService")
public class AttachGoodsService extends BaseService{

    public void save(Attachgoods attachgoods)throws Exception{
        attachGoodsDao.save(attachgoods);
    }

    public void update(Attachgoods attachgoods)throws Exception{
        attachGoodsDao.update(attachgoods);
    }

    public void delete(Attachgoods attachgoods)throws Exception{
        attachGoodsDao.delete(attachgoods);
    }

    public List<Attachgoods>  findAllAttachGoods(int appid)throws Exception{
       return   attachGoodsDao.findAllAttchGoods(appid);
    }
}
